class Solution {
public:
    vector<int> findColumnWidth(vector<vector<int>>& grid) {
        size_t line = grid.size();
        size_t col = grid[0].size();
        vector<int> max_size(col, 0);

        for (int i = 0; i < col; ++i)
        {
            for (int j = 0; j < line; ++j)
            {
                max_size[i] = max(max_size[i], int(to_string(grid[j][i]).size()));
            }
        }
        return max_size;
    }
};